
function setAttr() {

    var ckxzes = window.parent.ckxzes;

    let no = getUrlParam().no;

    // 页面初始加载iframe
    if (no >= 0) {

        //查看或编辑页面，每个iframe使用对应查控流水号
        if(ckxzes !== null && ckxzes.length > 0) {
            let ckdx = ckxzes[no];
            $("#cklsh").val(ckdx.cklsh);

            $("input[name='ah']").val(ckdx.ah);
            $("input[name='cbr']").val(ckdx.cbr);
            $("input[name='sjy']").val(ckdx.sjy);
            $("input[name='mc']").val(ckdx.mc);
            $("input[name='zjhm']").val(ckdx.zjhm);
            $("input[name='hjszd']").val(ckdx.hjszd);

            setSelVal("select[name='ssdw']", ckdx.ssdw);
            setSelVal("select[name='zjlx']", ckdx.zjlx);
            setSelVal("select[name='gj']", ckdx.gj);
        }
    } else {

        //iframe为后来新增的，cklsh使用新生成的32位uuid
        $("#cklsh").val(getUuid(32, 16));
    }

    if(window.parent.type === "view") {
        checkDisable(".inputCheck", 'disabled');
        inputDisable(".inputText", 'disabled');
        selDisable(".inputSel", true);
    }
}